﻿using NewSecret.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace NewSecret
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            MyEncoder coder = new MyEncoder();
            coder.Plaintext = this.textBox1.Text;
            coder.Key = this.textBox2.Text;
            coder.Encode();
            this.label3.Text = coder.Cypher;
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }
    }
}
